Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests around cloneAsHeader() #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rnicoll
Copy link
Collaborator

@rnicoll rnicoll commented Jan 9, 2022

Fixes a bug where cloneAsHeader() was using the previous block hash when setting merkle root, and a test to cover this scenario. Also adds a test of connecting the first Litecoin block to its genesis block.

As part of requiring extended block loading, this introduces a dedicated BlockLoader utility class.

@rnicoll rnicoll self-assigned this Jan 9, 2022
Copy link
Member

@michilumin michilumin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First two files look fine, since they're just reorgs, need to look closer at the doge and lite tests themselves. In process.

@rnicoll rnicoll force-pushed the test-clone-as-header branch from 0b009a4 to c344c33 Compare February 12, 2022 11:18
@rnicoll rnicoll changed the base branch from 0.16 to main February 12, 2022 11:18
@rnicoll rnicoll force-pushed the test-clone-as-header branch from c344c33 to 48ff5df Compare February 14, 2022 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants